package com.pmcc.cj.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pmcc.core.entity.UUIDEntity;
import com.pmcc.utils.DateTimeFormat;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by tomas on 2018/3/22.
 *app文件记录
 */
@Entity
@Table(name = "cj_app_version")
public class CjAppVersion extends UUIDEntity {

    @Column(name = "name")
    private String name;//文件名称
    @Column(name = "version")
    private String version;//文件版本
    @Column(name = "customize_version")
    private String customizeVersion;//自定义版本
    @Column(name = "address")
    private String address;//文件地址
    @Column(name = "update_content",length = 2000)
    private String updateContent;//更新内容
    @Column(name = "create_time")
    private Date createTime;//创建或者更新时间 2020-08-05添加

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getUpdateContent() {
        return updateContent;
    }

    public void setUpdateContent(String updateContent) {
        this.updateContent = updateContent;
    }

    public String getCustomizeVersion() {
        return customizeVersion;
    }

    public void setCustomizeVersion(String customizeVersion) {
        this.customizeVersion = customizeVersion;
    }
    @JsonSerialize(using = DateTimeFormat.class)
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
